#!/bin/sh

a=`ps -eo pid,ppid,fname`

b=$( echo $a | awk 'BEGIN{ FS=" " } { print $1 "\n" $2 }' )
#t1=`awk 'BEGIN { FS = " " } ; { print "$1" }' "$t"`
c=($b)
echo ${c[1]}
echo ${c[2]}


#b[2]=$( echo $a | awk 'BEGIN{ FS=" " } { print $1 "\n" $2 }' )
#b[3]=$( echo $a | awk 'BEGIN{ FS=" " } { print $1 "\n" $3 }' )
#b[4]=$( echo $a | awk 'BEGIN{ FS=" " } { print $1 "\n" $4 }' )
#${c[1]}=(${b[1]})
#${c[2]}=(${b[2]})
#${c[3]}=(${b[3]})
#${c[4]}=(${b[4]})
#echo "c[1] = ${c[1]}"
#echo "c[2] = ${c[2]}"
#echo "c[3] = ${c[3]}"
#echo "c[4] = ${c[4]}"
exit 0
